package com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.fosun.spr.core.base.CoBaseService;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.dao.LearnCommonRemoteDao;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.LearnCommonRemoteService;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_articleSpModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_articleSrModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_article_catalogSpModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_article_catalogSrModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_article_columnSpModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_article_columnSrModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_article_fromSpModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_article_fromSrModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_article_type_parsefileSpModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_article_type_parsefileSrModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_tbitemSpModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_tbitemSrModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_tbitem_catalogSpModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_tbitem_catalogSrModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_tbshopSpModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_tbshopSrModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_userSpModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_userSrModel;

@Transactional(rollbackFor = { RuntimeException.class, Exception.class })
@Service
public class LearnCommonRemoteServiceImpl extends CoBaseService implements LearnCommonRemoteService {
	@Autowired
	private LearnCommonRemoteDao learnCommonRemoteDao;
	//@Resource
	//private LearnCommonRemoteMapper learnCommonRemoteMapper;
 
	@Override
	public List_v2_userSrModel list_v2_user(List_v2_userSpModel spModel) {
		List_v2_userSrModel srModel = new List_v2_userSrModel();
		srModel.setDatas(learnCommonRemoteDao.list_v2_user(spModel));
		srModel.setTotalCount(learnCommonRemoteDao.list_v2_userCount(spModel));
		return srModel;
	}	
	
	@Override
	public List_v2_articleSrModel list_v2_article(List_v2_articleSpModel spModel) {
		List_v2_articleSrModel srModel = new List_v2_articleSrModel();
		srModel.setDatas(learnCommonRemoteDao.list_v2_article(spModel));
		srModel.setTotalCount(learnCommonRemoteDao.list_v2_articleCount(spModel));
		return srModel;
	}	
	@Override
	public List_v2_article_catalogSrModel list_v2_article_catalog(List_v2_article_catalogSpModel spModel) {
		List_v2_article_catalogSrModel srModel = new List_v2_article_catalogSrModel();
		srModel.setDatas(learnCommonRemoteDao.list_v2_article_catalog(spModel));
		srModel.setTotalCount(learnCommonRemoteDao.list_v2_article_catalogCount(spModel));
		return srModel;
	}	
	@Override
	public List_v2_article_columnSrModel list_v2_article_column(List_v2_article_columnSpModel spModel) {
		List_v2_article_columnSrModel srModel = new List_v2_article_columnSrModel();
		srModel.setDatas(learnCommonRemoteDao.list_v2_article_column(spModel));
		srModel.setTotalCount(learnCommonRemoteDao.list_v2_article_columnCount(spModel));
		return srModel;
	}	
	@Override
	public List_v2_article_fromSrModel list_v2_article_from(List_v2_article_fromSpModel spModel) {
		List_v2_article_fromSrModel srModel = new List_v2_article_fromSrModel();
		srModel.setDatas(learnCommonRemoteDao.list_v2_article_from(spModel));
		srModel.setTotalCount(learnCommonRemoteDao.list_v2_article_fromCount(spModel));
		return srModel;
	}	
	@Override
	public List_v2_tbitemSrModel list_v2_tbitem(List_v2_tbitemSpModel spModel) {
		List_v2_tbitemSrModel srModel = new List_v2_tbitemSrModel();
		srModel.setDatas(learnCommonRemoteDao.list_v2_tbitem(spModel));
		srModel.setTotalCount(learnCommonRemoteDao.list_v2_tbitemCount(spModel));
		return srModel;
	}	
	@Override
	public List_v2_tbitem_catalogSrModel list_v2_tbitem_catalog(List_v2_tbitem_catalogSpModel spModel) {
		List_v2_tbitem_catalogSrModel srModel = new List_v2_tbitem_catalogSrModel();
		srModel.setDatas(learnCommonRemoteDao.list_v2_tbitem_catalog(spModel));
		srModel.setTotalCount(learnCommonRemoteDao.list_v2_tbitem_catalogCount(spModel));
		return srModel;
	}	
	@Override
	public List_v2_article_type_parsefileSrModel list_v2_article_type_parsefile(List_v2_article_type_parsefileSpModel spModel) {
		List_v2_article_type_parsefileSrModel srModel = new List_v2_article_type_parsefileSrModel();
		srModel.setDatas(learnCommonRemoteDao.list_v2_article_type_parsefile(spModel));
		srModel.setTotalCount(learnCommonRemoteDao.list_v2_article_type_parsefileCount(spModel));
		return srModel;
	}	
	
	@Override
	public List_v2_tbshopSrModel list_v2_tbshop(List_v2_tbshopSpModel spModel) {
		List_v2_tbshopSrModel srModel = new List_v2_tbshopSrModel();
		srModel.setDatas(learnCommonRemoteDao.list_v2_tbshop(spModel));
		srModel.setTotalCount(learnCommonRemoteDao.list_v2_tbshopCount(spModel));
		return srModel;
	}	
	
}
